'use strict';

const mkdirp = require('mkdirp');

module.exports = app => {
  app.beforeStart(async () => {
    // 确保目录存在
    const sql = app.config.sql;

    mkdirp.sync(sql);
  });
};
